package com.x.Part5_接口.Car;

/**
 * ClassName: EleVehicle
 * Package: IntelliJ IDEA
 * Description:
 * Written by HanXu
 * Create 2024.03.05 20:34
 */
public class EleVehicle extends Vehicle implements IPower{

    public EleVehicle() {
    }

    public EleVehicle(String brand, String color) {
        super(brand, color);
    }

    @Override
    public void run() {
        System.out.println("开电车");
    }


    @Override
    public void power() {
        System.out.println("电车充电");
    }
}
